<div id="toolbar" >
  <div class="right-toolbar">
  <a title="Lưu">
  <button onclick="document.forms['createArticles'].submit()">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/save.png" height="32px" width="32px"/>
  <span><p>Lưu</p></span>
  </button>
  </a>
  </div>
  <div class="left-toolbar">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/articles.png" height="48px" width="48px"/>
  <span>Thêm bài viết</span>
  </div>
</div>

<div id="box-content">
 <div id="box-content1">
    <form id="createArticles" action="<?php echo $this->_baseUrl;?>/admin/articles/create" method="post">
      <?php
        if($this->status == 1)
        {
      ?>      
      <div style="padding-bottom:15px; color:#FF0000;width:400px;font-weight:bold;">
      <img src="<?php echo $this->_baseUrl;?>/public/images/web/error.png" width="32" height="32" style="float:left; margin-right:10px;"/>
      Lỗi : <?php echo $this->message;?>
      </div>
      <?php
       }
      ?>
      <p>
        <label>Tiêu đề</label>
        <input type="text" name="titleArticle" style="padding: 5px;width: 500px;" value="<?php echo $this->input_title;?>"/>
      </p>
      <p>
        <label>Thể loại</label>
        <select name="groupArticle">
          
            <option value="0" <?php if($this->input_group == 0) echo "selected='selected'";?>>Chưa xác định</option>
            <option value="1" <?php if($this->input_group == 1) echo "selected='selected'";?>>Giới thiệu</option>
            <option value="2" <?php if($this->input_group == 2) echo "selected='selected'";?>>Hướng dẫn</option>
            <option value="3" <?php if($this->input_group == 3) echo "selected='selected'";?>>Download</option>
        </select>
      </p>

      <p> 
       <textarea name="contentArticle"><?php echo $this->input_content;?></textarea>
      </p>
    </form>
    <?php
    loadHelper('editor');
    echo ckeditor('contentArticle');
    ?>
 </div>
</div>
